<!DOCTYPE html>
<html lang="zh-cn">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>JS013-事件监听</title>
</head>

<body>
  <button class="clickme-btn">点我</button>
  <script>
    const clickMeBtn = document.querySelector('.clickme-btn')
    clickMeBtn.addEventListener('click', function () {
      alert('Hello, EventListener!')
    })
  </script>
</body>

</html>